home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia 1995 April / Informatica Multimedia CD - Epimundo.iso / DOS / FILECOPY / COPYFIL.ZIP / CP.DOC < prev    next >
Encoding:
Text File  |  1989-09-08  |  7.4 KB  |  209 lines

  1.         CP                  Copy files (MS-DOS)             Version 5.3
  2.  
  3.             cp [-!abdfhiopqsv7] source [...] [target]
  4.  
  5.         The sources may be single files, file specifications containing
  6.         wildcards, or multiple file specifications separated by commas.
  7.         File specifications may include disk drives and/or directory
  8.         names.
  9.  
  10.         If multiple files are being copied, the target must be a disk
  11.         drive and/or a directory name.  If only one file is being copied,
  12.         the target may also be the name of another file.  If the target
  13.         is omitted (syntactically only possible with one source
  14.         argument), the current directory is assumed.  If the target name
  15.         ends with a backslash and no such directory exists, it will be
  16.         created.
  17.  
  18.         If a source argument contains multiple file specifications
  19.         separated by commas, disk drive or directory names encountered
  20.         are passed along to subsequent file specifications until
  21.         reassigned.  Thus,
  22.  
  23.             cp a:\src\*.c,*.obj,\exe\*.* another.dat b:
  24.  
  25.         is the same as
  26.  
  27.             cp a:\src\*.c a:\src\*.obj a:\exe\*.* another.dat b:
  28.  
  29.         A list of file specifications separated by commas is
  30.         syntactically a single source argument, thus
  31.  
  32.             cp a:bob,carol,ted,alice
  33.  
  34.         will copy four files from drive A to the current directory, since
  35.         no target has been specified.
  36.  
  37.         If a target file exists, CP normally asks for verification before
  38.         overwriting.
  39.  
  40.         If there is not enough room on the target disk for the copy, the
  41.         program pauses while the user changes disks; the copy then
  42.         proceeds.
  43.  
  44.         If the target is specified as
  45.  
  46.             2:
  47.  
  48.         drive A will be used until full.  Drive B is then used; when B
  49.         fills, the program pauses while you change disks and then starts
  50.         over with A.  This is useful for backups.
  51.  
  52.  
  53.                               Command Line Options
  54.  
  55.         -a (attributes)
  56.  
  57.         Pass on the attributes (read-only, hidden, etc.) of the source
  58.         file to the target file.  Normally the target file is created
  59.         read/write, non-hidden, non-system, with the archive bit set
  60.         (e.g.  not backed up).
  61.  
  62.         -b (backup)
  63.  
  64.         Used to backup hard disk onto floppies.  -b implies -pf (see
  65.         below).  If no target is specified, 2: is assumed.
  66.  
  67.         On the DEC Rainbow only, CP will delete all files and sub-
  68.         directories on each new floppy inserted.  This allows you to make
  69.         backups onto the floppies without having to erase them manually
  70.         beforehand.  For this reason, CP requests confirmation if -b is
  71.         specified before beginning the backup.
  72.  
  73.         -d (delete after copy)
  74.  
  75.         Delete the source file (without requesting confirmation) if the
  76.         copy was successful.
  77.  
  78.         -f (flag)
  79.  
  80.         Clear the archive flag in each source file after it has been
  81.         successfully copied indicating the file has been backed up.
  82.  
  83.         -h (hidden)
  84.  
  85.         Ignore files with the Hidden attribute.
  86.  
  87.         -i (input)
  88.  
  89.         Take the list of files to copy from the standard input rather
  90.         than the command line.  Thus with -i the format of CP is
  91.  
  92.             cp -i [-adqsv!] [target]
  93.  
  94.         This is useful when using CP as a filter. e.g
  95.  
  96.             ls -fm | cp -i a
  97.  
  98.         copies files in order from smallest to largest.  This insures
  99.         that the most files will be copied to a: before it fills.
  100.  
  101.         -n (no replace)
  102.  
  103.         Don't overwrite existing files; only do copies which create new
  104.         files.  No comment is made if a copy is skipped due to an already
  105.         existing file.
  106.  
  107.         -p (path)
  108.  
  109.         The target must be a drive letter followed by a colon.  If a
  110.         directory (path) specification is present for a source file, it
  111.         will be copied to a path of that name on the target drive.
  112.         Directories are created as needed.
  113.  
  114.         The command
  115.  
  116.             cp -p \exe\*.* \src\*.* a
  117.  
  118.         will copy files to directories a:\exe and a:\src.
  119.  
  120.             ls -rf e:\ | cp -ip 2:
  121.  
  122.         will backup up all of drive E onto floppies, using drives A and
  123.         B
  124.  
  125.         -q (quiet)
  126.  
  127.         Supress informational copy messages.
  128.  
  129.         -s (system)
  130.  
  131.         Ignore files with the System attribute.
  132.  
  133.         -v (verify)
  134.  
  135.         Request user confirmation before copying.  At each file prompt
  136.         the user answers either Y (do the copy), ! (do the copy and don't
  137.         ask for confirmation on future files), or N (don't copy this
  138.         file).  Any other answer is the same as N.  If -f was specified,
  139.         the archive bit is turned off regardless of the answer unless CP
  140.         is aborted with ^C
  141.  
  142.         -! (hammer!)
  143.  
  144.         Supress the verification which is normally requested (even
  145.         without -v) before overwriting an existing file.
  146.  
  147.         -7 (7-bit)
  148.  
  149.         Clear the high-order bit of each byte in the target file.  Useful
  150.         for removing parity bits after serial transfer or for stripping
  151.         word-processor inserted flags.
  152.  
  153.         Options may be combined as in
  154.  
  155.             cp -q! ...
  156.  
  157.         The CP! command is a shorthand for cp -!.  Usage is
  158.  
  159.             cp! [-adhinpqsv7] file [...] [target]
  160.  
  161.  
  162.         Copyright (c) 1985-89 by Bryan Higgins.  All rights reserved.
  163.         Permission is hereby given to reproduce and distribute this
  164.         program without restriction for non-commercial use.
  165.  
  166.         The author may be reached/rewarded at
  167.  
  168.                 1802 Channing Way
  169.                 Berkeley, CA 94703-1725
  170.  
  171.         Please specify CP version 5.3 when referring to this program.
  172.  
  173.         One of the Kramden Utilities.
  174.  
  175.          ----------------end-of-author's-documentation---------------
  176.  
  177.                         Software Library Information:
  178.  
  179.                    This disk copy provided as a service of
  180.  
  181.                         The Public (Software) Library
  182.  
  183.          We are not the authors of this program, nor are we associated
  184.          with the author in any way other than as a distributor of the
  185.          program in accordance with the author's terms of distribution.
  186.  
  187.          Please direct shareware payments and specific questions about
  188.          this program to the author of the program, whose name appears
  189.          elsewhere in  this documentation. If you have trouble getting
  190.          in touch with the author,  we will do whatever we can to help
  191.          you with your questions. All programs have been tested and do
  192.          run.  To report problems,  please use the form that is in the
  193.          file PROBLEM.DOC on many of our disks or in other written for-
  194.          mat with screen printouts, if possible.  The P(s)L cannot de-
  195.          bug programs over the telephone.
  196.  
  197.          Disks in the P(s)L are updated monthly, so if you did not get
  198.          this disk  directly from the P(s)L,  you should be aware that
  199.          the files in this set may no  longer be the current versions.
  200.  
  201.          For a copy of the latest monthly software library newsletter
  202.          and a list of the 2,000+ disks in the library, call or write
  203.  
  204.                         The Public (Software) Library
  205.                               P.O.Box 35705 - F
  206.                            Houston, TX 77235-5705
  207.                                (713) 665-7017
  208.  
  209.